package com.gd.demo.cloud.provider.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("cloud-provider-demo")
public interface PaymentFeignClient {

    @GetMapping("/payment/nacos/{id}")
    String getPayment(@PathVariable("id") Integer id);

}
